package com.bzframework.pro.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @Author bingzhong
 * @Date 2025/3/31 12:54
 * @Description
 */

@Table(name = "beiya_tanma_employee")
@Getter
@Setter
@ToString
@Schema(description = "员工实体")
@EnableEntityEvent //开启实体类crud事件
public class EmployeeEntity extends GenericEntity<String> {

    @Column
    @Schema(description = "员工ID （企微）")
    private String salesId;

    @Column
    @Schema(description = "校管家员工id")
    private String employeeId;

    @Column
    @Schema(description = "员工名称")
    private String name;

    @Column
    @Schema(description = "公司id")
    private String corpid;

    @Column
    @Schema(description = "员工手机号")
    private String mobile;

    @Column
    @Schema(description = "邮箱")
    private String email;

    @Column
    @Schema(description = "所属部门id列表")
    private String departmentList;

    @Column
    @Schema(description = "管理部门id列表")
    private String manageDeptList;

    @Column
    @Schema(description = "是否启用，1表示启用,0表示被禁用")
    private Integer enable;

    @Column
    @Schema(description = "是否被删除，0表示未删除")
    private Integer deleted;


}
